<%@ page import="java.util.List" %>
<%@ page import="dao.impl.WarehouseImpl" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title></title>
  <link rel="stylesheet" href="resources/css/amazeui.min.css" />
  <link rel="stylesheet" href="resources/css/admin.css" />
</head>
<%
  WarehouseImpl warehouseDao=new WarehouseImpl();
  List<String> w1=warehouseDao.selectWarehouseId();
%>
<body>
<div class="admin-content-body">
  <div class="am-cf am-padding am-padding-bottom-0">
    <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">仓库列表</strong><small></small></div>
  </div>
  <hr>
  <div class="am-g">
    <div class="am-u-sm-12">
      <form class="am-form">
        <table class="am-table am-table-striped am-table-hover table-main">
          <thead>
          <tr>
            <th class="table-id"  style="width: 70%;text-align: center">编号</th>
            <th class="table-set" width="30%" >进入仓库</th>
          </tr>
          </thead>
          <%
            for (String s : w1) {
          %>
          <tbody>
          <tr>
            <td style="width: 70%;text-align: center"><%=s%>
            </td>
            <td>
              <div class="am-btn-toolbar">
                <div class="am-btn-group am-btn-group-xs">
                  <button style="margin-right: 80px"
                          class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only">
                    <a width="30%" href="warehouse.jsp?warehouseId=<%=s%>">进入仓库</a>
                  </button>
                </div>
              </div>
            </td>
          </tr>
          <%}%>
          </tbody>
        </table>
        <hr>
      </form>
    </div>
  </div>
</div>
</body>
</html>
